package com.xbq.exceleditor.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.xbq.exceleditor.db.entity.ExcelBean
import com.xbq.exceleditor.R
import com.xbq.exceleditor.databinding.ItemMydocumentBinding
import javax.inject.Inject

/**
 * Author: liaohaiping
 * Time: 2021-01-20
 * Description:
 */
class MyDocumentAdapter @Inject constructor() :
    BaseQuickAdapter<ExcelBean, BaseViewHolder>(R.layout.item_mydocument) {
    override fun convert(
        holder: BaseViewHolder,
        item: ExcelBean,
    ) {
        ItemMydocumentBinding.bind(holder.itemView).let {
            it.videoTitle.text = item.title
            it.videoDesc.text = item.createTimeStr()
        }
    }

}